package net.mysoft.budgetsoft.system.pagemodel;

/**
 * 
 * @author dagongPGP v1.0
 * @link <a href=http://www.dagongsoft.net>北京大公信软科技有限公司</a>
 * 
 * @version $Revision: 1.00 $Date: 2013-12-27 08:45:08
 */

public class CaiDan implements java.io.Serializable {

	private String ids;
	private int page;// 当前页
	private int rows;// 每页显示记录数
	private String sort;// 排序字段名
	private String order;// 按什么排序(asc,desc)

	private String bianHao;
	private String shangJiCDBH;
	private String shangJiCDMC;
	private String caiDanMC;
	private Integer caiDanDJ;
	private Integer shunXu;
	private String luJing;
	private Integer zhuangTai;
	private String zhuangTaiStr;
	private String beiZhu;
	private String rootID;
	private String state;
	private String idLeaf;

	public String getShangJiCDMC() {
		return shangJiCDMC;
	}

	public void setShangJiCDMC(String shangJiCDMC) {
		this.shangJiCDMC = shangJiCDMC;
	}

	public String getZhuangTaiStr() {
		return zhuangTaiStr;
	}

	public void setZhuangTaiStr(String zhuangTaiStr) {
		this.zhuangTaiStr = zhuangTaiStr;
	}

	public String getRootID() {
		return rootID;
	}

	public void setRootID(String rootID) {
		this.rootID = rootID;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getIdLeaf() {
		return idLeaf;
	}

	public void setIdLeaf(String idLeaf) {
		this.idLeaf = idLeaf;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getRows() {
		return rows;
	}

	public void setRows(int rows) {
		this.rows = rows;
	}

	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}

	public String getOrder() {
		return order;
	}

	public void setOrder(String order) {
		this.order = order;
	}

	public String getBianHao() {
		return this.bianHao;
	}

	public void setBianHao(String bianHao) {
		this.bianHao = bianHao;
	}

	public String getShangJiCDBH() {
		return this.shangJiCDBH;
	}

	public void setShangJiCDBH(String shangJiCDBH) {
		this.shangJiCDBH = shangJiCDBH;
	}

	public String getCaiDanMC() {
		return this.caiDanMC;
	}

	public void setCaiDanMC(String caiDanMC) {
		this.caiDanMC = caiDanMC;
	}

	public Integer getCaiDanDJ() {
		return this.caiDanDJ;
	}

	public void setCaiDanDJ(Integer caiDanDJ) {
		this.caiDanDJ = caiDanDJ;
	}

	public Integer getShunXu() {
		return this.shunXu;
	}

	public void setShunXu(Integer shunXu) {
		this.shunXu = shunXu;
	}

	public String getLuJing() {
		return this.luJing;
	}

	public void setLuJing(String luJing) {
		this.luJing = luJing;
	}

	public Integer getZhuangTai() {
		return this.zhuangTai;
	}

	public void setZhuangTai(Integer zhuangTai) {
		this.zhuangTai = zhuangTai;
	}

	public String getBeiZhu() {
		return this.beiZhu;
	}

	public void setBeiZhu(String beiZhu) {
		this.beiZhu = beiZhu;
	}

	@Override
    public int hashCode() {
    	if(this.getBianHao()==null)return super.hashCode();
    	int prime = 0;
        prime +=this.getBianHao().hashCode();
        return prime;
    }

    @Override
    public boolean equals(Object obj) {
    	boolean isEquals = false;
    	if(obj!=null&&this.getClass()==obj.getClass()){
    		CaiDan clazz = (CaiDan)obj;
            if(clazz.getBianHao().equals(this.getBianHao()))
            	isEquals = true;
    		return isEquals;
    	}
        return isEquals;
    }

}